import {http} from '@/utils/http'
import type { OrderResult } from '@/types/detail'
import type { OrderPreResult } from '@/types/order'
/**
 * 获取订单详情
 * @param id 订单id
 */
export const getMemberOrderByIdAPI = (id: string) => {
    return http<OrderResult>({
      method: 'GET',
      url: `/member/order/${id}`,
    })
  }


/**
 * 填写订单-再次购买
 * @param id 订单id
 */
export const getMemberOrderRepurchaseByIdAPI = (id: string) => {
    return http<OrderPreResult>({
      method: 'GET',
      url: `/member/order/repurchase/${id}`,
    })
  }